from api.login_api import LoginApi
from common.assert_tools import assert_tools
from common.read03 import read
import pytest
from config import BASE_PATH

class TestLogin:
    def setup_class(self):
        self.Login = LoginApi()
    @pytest.mark.parametrize("dase,req_data,status_code,success,code,message",read(BASE_PATH+"/data/login.json"))
    def test01(self,dase,req_data,status_code,success,code,message):
        req_data = req_data
        resp = self.Login.login(req_data)
        print(dase,resp.json())
        assert_tools(resp,status_code,success,code,message)
